import request from '@/utils/request';
//添加收藏
export const addCollection = data =>
    request({
        method: 'POST',
        url: '/frontend/collection/add/',
        data
    })
//取消收藏
export const deleteCollectionById = data =>
    request({
        method: 'POST',
        url: '/frontend/collection/delete/',
        data
    })

//获取我的收藏列表
export const getCollection = data =>
    request({
        method: 'POST',
        url: '/frontend/collection/list/',
        data
    })
